const getters = {
  tag: state => state.tags.tag,
  isHorizontal: (state, getters) => getters.setting.sidebar === 'horizontal',
  keyCollapse: (state, getters) => getters.screen > 1 ? getters.isCollapse : false,
  tagList: state => state.tags.tagList,
  tagWel: state => state.tags.tagWel,
  permission: state => state.user.permission,
  menuId: state => state.user.menuId,
  // common
  isCollapse: state => state.common.isCollapse,
  language: state => state.common.language,
  setting: state => state.common.setting,
  colorName: state => state.common.colorName,
  themeName: state => state.common.themeName,
  isRefresh: state => state.common.isRefresh,
  screen: state => state.common.screen,
  isFullScren: state => state.common.isFullScren,
  isMenu: state => state.common.isMenu,
  appConfig: state => state.common.appConfig,
  // auth
  userInfo: state => state.auth.userInfo,
  token: state => state.auth.token,
  roles: state => state.auth.roles,
  menu: state => state.auth.menu,
  menuAll: state => state.auth.menuAll
  // menuTop: state => state.auth.menuTop
}
export default getters
